﻿//创建人：蒋金金
//创建时间：2017年2月17日 14点03分
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BI.CF.Model;
using System.Data.SqlClient;
using BI.CF.PageList;
namespace BI.CF.IDAL
{
   public  interface MemLoanIDAL
    {
       /// <summary>
       /// 显示信用标
       /// </summary>
       /// <param name="pageindex"></param>
       /// <param name="pagesize"></param>
       /// <returns></returns>
       SqlDataReader Show_MemlLoan(int pageindex, int pagesize,string UserName ,decimal money,string fuhao);
       /// <summary>
       /// 显示信用标的数量
       /// </summary>
       /// <returns></returns>
       int Count_MemLoan(string UserName, decimal LoanMoney, string BiJiaoFuHao);
       /// <summary>
       /// 成功案例展示
       /// </summary>
       /// <returns></returns>
       Pager<MemLoanModel> Get_MemLoan_Selet(string RepaymentModeId, string ExamineState, int PageIndex, int PageSize);
       
       /// <summary>
       /// 根据ID查询具体案例信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       MemLoanModel Get_MemLoanOne(string id);
       /// <summary>
       /// 发布借款信息
       /// </summary>
       /// <param name="model"></param>
       /// <returns></returns>
       int MemLoanAdd(MemLoanModel model);
       /// <summary>
       /// 查询支付密码
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       UserrsModel SelectPayPwd(int id);
       /// <summary>
       /// 修改支付密码
       /// </summary>
       /// <param name="id"></param>
       /// <param name="pwd"></param>
       /// <returns></returns>
       bool UpdatePwd(int id, string pwd);
       /// <summary>
       /// 显示全部的借款信息
       /// </summary>
       /// <param name="pageSize"></param>
       /// <param name="pageIndex"></param>
       /// <param name="Title"></param>
       /// <param name="MinTime"></param>
       /// <param name="MaxTime"></param>
       /// <param name="State"></param>
       /// <param name="Userid"></param>
       /// <returns></returns>
       Pager<MemLoanModel> SelectMomLoanMone(int pageSize, int pageIndex, string Title, string MinTime, string MaxTime, string State, int Userid);
       /// <summary>
       /// 修改审核状态
       /// </summary>
       /// <param name="id"></param>
       /// <param name="state"></param>
       /// <returns></returns>
       bool UpdateMemloanState(int id, int state);
       #region 查询待还记录
       /// <summary>
       /// 查询待还记录
       /// </summary>
       /// <param name="id">借款编号</param>
       /// <returns></returns>
      List<RepayDetailedModel> GetOne_Rep(int id);
       #endregion
   }
}
